<?php

/**
 * @author Invisible Man
 * @copyright 2013
 */
function short_intro($str, $max_length) {
    $length = mb_strlen($str, "UTF-8");
    if ($length > $max_length) {
        $str_last = mb_substr($str, 0, $max_length, "UTF-8") . '...';
        return $str_last;
    }
    return $str;
}

?>